<?php	
		session_start();
		header("content-type:image/png");
		$im = imagecreatetruecolor(75,25);
		$color = imagecolorallocate($im,mt_rand(50,255),mt_rand(50,255),mt_rand(50,255));
		$red = imagecolorallocate($im,255,0,0);
		imagefill($im,0,0,$color);
		$str="QWERTYUPASDFGHJKLZXCVBNM23456789";	
		$SStr = "";
		for($i=1;$i<=4;$i++){
			$cl = imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
			$key = mt_rand(0,strlen($str)-1);
			$char = $str[$key];
			$SStr .= $char;	
			$_SESSION['verify'] = strtolower($SStr);
			imagefttext($im,15,mt_rand(-15,15),15*($i-1)+6,20,$cl,"FZYTK.TTF",$char);
		}
		for($n=1;$n<500;$n++){
			$cl2 = imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
			imagesetpixel($im,mt_rand(0,230),mt_rand(0,80),$cl2);
		}
		for($l=1;$l<=4;$l++){
			$cl3 = imagecolorallocate($im,mt_rand(0,255),mt_rand(0,255),mt_rand(0,255));
			imageline($im,mt_rand(0,80),mt_rand(0,80),mt_rand(80,160),mt_rand(0,80),$cl3);
		}
		imagearc($im,mt_rand(20,200),40,mt_rand(90,150),mt_rand(20,60),0,mt_rand(45,160),$red);
		imagepng($im);
		
?>
